package org.manager 
{
	import org.ui.Blank;
	import org.ui.Card;
	import org.ui.Digit;
	import org.ui.Mine;
	
	/**
	 * ...
	 * @author TianYu
	 */
	public class CardFactory 
	{
		
		public function CardFactory() 
		{
			
		}
		
		public function produceCard(type:String):Card
		{
			switch (type) 
			{
				case "mine":
					return new Mine();
					
				case "digit":
					return new Digit();
					
				case "blank":
					return new Blank();
					
				default:
					return null;
			}
		}
		
	}

}